package com.cool.shark.service;

import com.cool.shark.pojo.vo.ProductCategoryVo;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Name: admin
 * @Author: 西风残叶
 * @Date: 2024/4/26 19:12
 * @Version: 1.0
 * @TODO: TODO
 */
@SpringBootTest
@Slf4j
public class admin {
   @Autowired
    AdminService service;

    @Test
    public void test(){
        List<ProductCategoryVo> productCategory = service.getProductCategory();
        log.info("productCategory:{}",productCategory);
        productCategory.forEach(System.out::println);
    }
}
